/**
 * Created by JetBrains PhpStorm.
 * User: Silence
 * Date: 3/10/12
 * Time: 12:40 PM
 * To change this template use File | Settings | File Templates.
 */

Ext.require('EM.model.Event');

Ext.define("EM.store.Events", {
    extend:"Gnt.data.TaskStore",
    model:'EM.model.Event',
    storeId:'Events',
    sorters:'StartDate',
//    autoSync:true,

    proxy:{
        type:'rest',
        method:'GET',
        url:'data/events',
        reader:{
            type:'json',
            root:'data',
            idProperty:'id',
            successProperty:'success'

        },
        writer:{
            root:'data',
            allowSingle:false,
//            encode:true,
            writeAllFields:false,
            successProperty:'success'
        }
    },
    insert:function () {
        alert("");
    }
});
